<template lang="html">
  <div class="silder">
    <swiper :options="swiperOption">
      <swiper-slide>
        <img src="../assets/images/more-swiper-pic1.png" alt="">
      </swiper-slide>
      <swiper-slide>
        <img src="../assets/images/more-swiper-pic1.png" alt="">
      </swiper-slide>
      <swiper-slide>
        <img src="../assets/images/more-swiper-pic1.png" alt="">
      </swiper-slide>
      <swiper-slide>
        <img src="../assets/images/more-swiper-pic1.png" alt="">
      </swiper-slide>
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
export default {
    name:'swiperslider',
    data(){
        return{
            swiperOption: {
              // 配置swiper所有的参数同 swiper 官方 api 参数
              pagination: {
                el: '.swiper-pagination',
              },
              loop:true
            }
        }
    }
}
</script>

<style lang="css">

.silder,.silder img{
    width: 100%;
    height: 2.8rem;
    padding-bottom: .35rem;
    background-color: #fff;
}
.silder .swiper{
  padding-bottom: .35rem;
}
.swiper-pagination-fraction, .swiper-pagination-custom, .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: 29px;
    left: 0;
    width: 100%;
}
</style>
